﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PresentationView.aspx.cs" Inherits="ADECMS.UserPages.PresentationView" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
 <link href="../Css/ADEStylesheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
                    <asp:ScriptManager ID="ScriptManager1" runat="server">
                    </asp:ScriptManager>
        <table style="height: 150px;">
            <tr>
                <td style="font-family: Segoe Script; font-size: 48px; color: Purple; width: 20%;">
                    <a href="Start.aspx" style="font-family: Segoe Script; font-size: 48px; color: Purple; width: 20%; text-decoration:none;">
                    ADE
                    </a>
                </td>
                <td>
                    <asp:Label ID="Label5" runat="server" CssClass="inputLabel"></asp:Label>
                    &nbsp;
                    &nbsp;
                    </td>
            </tr>
            <tr>
                <td colspan="2" style="height: 45px;">
                    &nbsp;
                </td>
            </tr>
        </table>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <asp:Menu ID="Menu1" runat="server" Height="35px" onmenuitemclick="Menu1_MenuItemClick" 
                        Orientation="Horizontal" Width="664px" MaximumDynamicDisplayLevels="4" 
                    DisappearAfter="2000" Font-Bold="True" Font-Size="Small" ForeColor="Black">
                    <DynamicHoverStyle BackColor="#666666" />
                    <DynamicMenuStyle BackColor="Silver" />
                    <DynamicMenuItemStyle BackColor="Silver" />
                    <StaticHoverStyle BackColor="Gray" />
                    <Items>
                        <asp:MenuItem Text="Sign out" Value="Sign out"></asp:MenuItem>
                        <asp:MenuItem Text="Novosti" Value="Novosti">
                            <asp:MenuItem Text="Dodaj novost" Value="Dodaj novost" 
                                    Target="/UserPages/AddNews.aspx"></asp:MenuItem>
                            <asp:MenuItem Target="/UserPages/Search.aspx" 
                                    Text="Pretraga" Value="Pretraga"></asp:MenuItem>
                        </asp:MenuItem>
                        <asp:MenuItem Text="File manager" Value="File manager">
                            <asp:MenuItem Text="File upload" Value="File upload"></asp:MenuItem>
                             <asp:MenuItem Text="File download" Value="File download"></asp:MenuItem>
                        </asp:MenuItem>
                        <asp:MenuItem Text="Slide manager" Value="Slide manager">
                            <asp:MenuItem Text="Upload prezentacije" Value="Upload prezentacije">
                            </asp:MenuItem>
                            <asp:MenuItem Text="Pregled prezentacije" Value="Pregled prezentacije">
                            </asp:MenuItem>
                        </asp:MenuItem>
                        <asp:MenuItem Text="Profili" Value="Profili">
                            <asp:MenuItem Text="Pregledaj profil" 
                                    Value="Pregledaj profil"></asp:MenuItem>
                            <asp:MenuItem Text="Edituj profil" Value="Edituj profil"></asp:MenuItem>
                        </asp:MenuItem>
                    </Items>
                </asp:Menu>
            </ContentTemplate>
        </asp:UpdatePanel>
        <table>
            <tr style="height:20px">
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr style="height:20px">
                <td>
                    <asp:Label ID="Label118" runat="server" Text="Pregled prezentacija:" 
                        CssClass="registracijaHeader"></asp:Label>
                </td>
            </tr>
            <tr style="height:20px">
                <td>
                    &nbsp;
                </td>
            </tr>
        </table>
        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
            <ContentTemplate>
                <asp:LinqDataSource ID="LinqDataSource2" runat="server" 
                        ContextTypeName="ADECMS.ADECMSDBDataContext" Select="new (name, file_date, description, type)" 
                        TableName="FILEs" Where="type == @type" OrderBy="id">
                    <WhereParameters>
                        <asp:Parameter DefaultValue="prezentacija" Name="type" Type="String" />
                    </WhereParameters>
                </asp:LinqDataSource>
                <table>
                    <tr>
                        <td>                     
                            <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                                AllowSorting="True" AutoGenerateColumns="False" CellPadding="4" 
                                DataSourceID="LinqDataSource2" ForeColor="#333333" GridLines="None" 
                                onselectedindexchanged="GridView1_SelectedIndexChanged">
                                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                <Columns>
                                    <asp:CommandField ShowSelectButton="True" />
                                    <asp:BoundField DataField="name" HeaderText="name" ReadOnly="True" 
                                        SortExpression="name" />
                                    <asp:BoundField DataField="file_date" HeaderText="file_date" ReadOnly="True" 
                                        SortExpression="file_date" />
                                    <asp:BoundField DataField="description" HeaderText="description" 
                                        ReadOnly="True" SortExpression="description" />
                                    <asp:BoundField DataField="type" HeaderText="type" ReadOnly="True" 
                                        SortExpression="type" />
                                </Columns>
                                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                <EditRowStyle BackColor="#999999" />
                                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                            </asp:GridView>
                        </td>
                    </tr>
                    <tr>
                        <td style="height:70px;">
                            <asp:Button ID="ButtonBack" runat="server" onclick="ButtonBack_Click" 
                                Text="Back" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="LabelTitle" runat="server" CssClass="inputLabel"></asp:Label>
                            <hr />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Image ID="Image1" runat="server" Height="500" 
                                Style=" border:solid 1px #000000;" Width="600" />
                        </td>
                    </tr>
                    <tr>
                        <td style="padding-left:25px;">
                            <asp:Label ID="LabelOpis" runat="server" CssClass="inputLabel2"></asp:Label>
                        </td>
                    </tr>        
                    <tr>
                        <td>
                            <asp:Button ID="btnPrev" runat="server" onclick="btnPrev_Click" Text="Prosli" />
                            <asp:Button ID="btnNext" runat="server" onclick="btnNext_Click" 
                                Text="Slijedeci" />
                        </td>
                    </tr>
                </table>                            
            </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</body>
</html>
